home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / wp / html.zip / HTML.DTD < prev    next >
Text File  |  1993-12-05  |  8KB  |  237 lines

  1.  
  2. <!-- Jul 1 93 -->
  3. <!--    Regarding clause 6.1, SGML Document:
  4.  
  5.         [1] SGML document = SGML document entity,
  6.             (SGML subdocument entity |
  7.             SGML text entity | non-SGML data entity)*
  8.  
  9.         The role of SGML document entity is filled by this DTD,
  10.         followed by the conventional HTML data stream.
  11. -->
  12.  
  13. <!-- DTD definitions -->
  14.  
  15. <!ENTITY % heading "H1|H2|H3|H4|H5|H6" >
  16. <!ENTITY % list "UL|OL|DIR|MENU">
  17. <!ENTITY % literal "XMP|LISTING">
  18.  
  19. <!ENTITY % headelement
  20.          "TITLE|NEXTID|ISINDEX" >
  21.  
  22. <!ENTITY % bodyelement
  23.          "P | %heading |
  24.          %list | DL | HEADER | ADDRESS | PRE | BLOCKQUOTE
  25.         | %literal">
  26.  
  27. <!ENTITY % oldstyle "%headelement | %bodyelement | #PCDATA">
  28.  
  29. <!ENTITY % URL "CDATA"
  30.         -- The term URL means a CDATA attribute
  31.            whose value is a Uniform Resource Locator,
  32.            as defined. (A URN may also be usable here when defined.)
  33.         -->
  34.  
  35. <!ENTITY % linkattributes
  36.         "NAME NMTOKEN #IMPLIED
  37.         HREF %URL; #IMPLIED
  38.         REL CDATA #IMPLIED -- forward relationship type --
  39.         REV CDATA #IMPLIED -- reversed relationship type
  40.                               to referent data:
  41.  
  42.                                 PARENT CHILD, SIBLING, NEXT, TOP,
  43.                                 DEFINITION, UPDATE, ORIGINAL etc. --
  44.  
  45.         URN CDATA #IMPLIED -- universal resource number --
  46.  
  47.         TITLE CDATA #IMPLIED -- advisory only --
  48.  
  49.         METHODS NAMES #IMPLIED -- supported public methods of the  
  50. object:
  51.                                         TEXTSEARCH, GET, HEAD, ... --
  52.  
  53.         ">
  54.  
  55.  
  56. <!-- Document Element -->
  57.  
  58. <!ELEMENT HTML O O  (( HEAD | BODY | %oldstyle)*, PLAINTEXT?)>
  59.  
  60. <!ELEMENT HEAD - -  (TITLE? & ISINDEX? & NEXTID? & LINK*
  61.                               & BASE?)>
  62.  
  63. <!ELEMENT TITLE - -  RCDATA
  64.           -- The TITLE element is not considered part of the flow of  
  65. text.
  66.              It should be displayed, for example as the page header  
  67. or
  68.              window title.
  69.           -->
  70.  
  71. <!ELEMENT ISINDEX - O EMPTY
  72.           -- WWW clients should offer the option to perform a search  
  73. on
  74.              documents containing ISINDEX.
  75.           -->
  76.  
  77. <!ELEMENT NEXTID - O EMPTY>
  78. <!ATTLIST NEXTID N NAME #REQUIRED
  79.           -- The number should be a name suitable for use
  80.              for the ID of a new element. When used, the value
  81.              has its numeric part incremented. EG Z67 becomes Z68
  82.           -->
  83. <!ELEMENT LINK - O EMPTY>
  84. <!ATTLIST LINK
  85.         %linkattributes>
  86.         
  87.  
  88. <!ELEMENT BASE - O EMPTY    -- Reference context for URLS -->
  89. <!ATTLIST BASE
  90.  
  91.         HREF %URL; #IMPLIED
  92.  
  93.         >
  94. <!ENTITY % inline "EM | TT | STRONG | B | I | U |
  95.                         CODE | SAMP | KBD | KEY | VAR | DFN | CITE "
  96.         >
  97.  
  98. <!ELEMENT (%inline;) - - (#PCDATA)>
  99.  
  100. <!-- Fix for missing header -->
  101. <!ELEMENT HEADER - - (%headelement)>
  102.  
  103. <!ENTITY % text "#PCDATA | IMG | %inline;">
  104.  
  105. <!ENTITY % htext "A | %text">
  106.  
  107. <!ELEMENT BODY - -  (%bodyelement|%htext;)*>
  108.  
  109.  
  110. <!ELEMENT A     - -  (%text)>
  111. <!ATTLIST A
  112.         %linkattributes;
  113.         >
  114.  
  115. <!ELEMENT IMG    - O EMPTY --  Embedded image -->
  116. <!ATTLIST IMG
  117.         SRC %URL; #IMPLIED      -- URL of document to embed --
  118.         >
  119.  
  120.  
  121. <!ELEMENT P     - O EMPTY -- separates paragraphs -->
  122.  
  123. <!ELEMENT ( %heading )  - -  (%htext;)+>
  124.  
  125. <!ELEMENT DL    - -  (DT | DD | P | %htext;)*>
  126. <!--    Content should match ((DT,(%htext;)+)+,(DD,(%htext;)+))
  127.         But mixed content is messy.
  128.   -->
  129.  
  130. <!ELEMENT DT    - O EMPTY>
  131. <!ELEMENT DD    - O EMPTY>
  132.  
  133. <!ELEMENT (UL|OL) - -  (%htext;|LI|P)+>
  134. <!ELEMENT (DIR|MENU) - -  (%htext;|LI)+>
  135. <!--    Content should match ((LI,(%htext;)+)+)
  136.         But mixed content is messy.
  137.   -->
  138. <!ATTLIST (%list)
  139.         COMPACT NAME #IMPLIED -- COMPACT, etc.--
  140.         >
  141.  
  142. <!ELEMENT LI    - O EMPTY>
  143.  
  144. <!ELEMENT BLOCKQUOTE - - (%htext;|P)+
  145.         -- for quoting some other source -->
  146.  
  147. <!ELEMENT ADDRESS - - (%htext;|P)+>
  148.  
  149. <!ELEMENT PRE - - (#PCDATA|%inline|A|P)+>
  150. <!ATTLIST PRE
  151.         WIDTH NUMBER #implied
  152.         >
  153.  
  154. <!-- Mnemonic character entities. -->
  155. <!ENTITY AElig "Æ" -- capital AE diphthong (ligature) -->
  156. <!ENTITY Aacute "Á" -- capital A, acute accent -->
  157. <!ENTITY Acirc "Â" -- capital A, circumflex accent -->
  158. <!ENTITY Agrave "À" -- capital A, grave accent -->
  159. <!ENTITY Aring "Å" -- capital A, ring -->
  160. <!ENTITY Atilde "Ã" -- capital A, tilde -->
  161. <!ENTITY Auml "Ä" -- capital A, dieresis or umlaut mark -->
  162. <!ENTITY Ccedil "Ç" -- capital C, cedilla -->
  163. <!ENTITY ETH "Ð" -- capital Eth, Icelandic -->
  164. <!ENTITY Eacute "É" -- capital E, acute accent -->
  165. <!ENTITY Ecirc "Ê" -- capital E, circumflex accent -->
  166. <!ENTITY Egrave "È" -- capital E, grave accent -->
  167. <!ENTITY Euml "Ë" -- capital E, dieresis or umlaut mark -->
  168. <!ENTITY Iacute "Í" -- capital I, acute accent -->
  169. <!ENTITY Icirc "Î" -- capital I, circumflex accent -->
  170. <!ENTITY Igrave "Ì" -- capital I, grave accent -->
  171. <!ENTITY Iuml "Ï" -- capital I, dieresis or umlaut mark -->
  172. <!ENTITY Ntilde "Ñ" -- capital N, tilde -->
  173. <!ENTITY Oacute "Ó" -- capital O, acute accent -->
  174. <!ENTITY Ocirc "Ô" -- capital O, circumflex accent -->
  175. <!ENTITY Ograve "Ò" -- capital O, grave accent -->
  176. <!ENTITY Oslash "Ø" -- capital O, slash -->
  177. <!ENTITY Otilde "Õ" -- capital O, tilde -->
  178. <!ENTITY Ouml "Ö" -- capital O, dieresis or umlaut mark -->
  179. <!ENTITY THORN "Þ" -- capital THORN, Icelandic -->
  180. <!ENTITY Uacute "Ú" -- capital U, acute accent -->
  181. <!ENTITY Ucirc "Û" -- capital U, circumflex accent -->
  182. <!ENTITY Ugrave "Ù" -- capital U, grave accent -->
  183. <!ENTITY Uuml "Ü" -- capital U, dieresis or umlaut mark -->
  184. <!ENTITY Yacute "Ý" -- capital Y, acute accent -->
  185. <!ENTITY aacute "á" -- small a, acute accent -->
  186. <!ENTITY acirc "â" -- small a, circumflex accent -->
  187. <!ENTITY aelig "æ" -- small ae diphthong (ligature) -->
  188. <!ENTITY agrave "à" -- small a, grave accent -->
  189. <!ENTITY amp "&" -- ampersand -->
  190. <!ENTITY aring "å" -- small a, ring -->
  191. <!ENTITY atilde "ã" -- small a, tilde -->
  192. <!ENTITY auml "ä" -- small a, dieresis or umlaut mark -->
  193. <!ENTITY ccedil "ç" -- small c, cedilla -->
  194. <!ENTITY eacute "é" -- small e, acute accent -->
  195. <!ENTITY ecirc "ê" -- small e, circumflex accent -->
  196. <!ENTITY egrave "è" -- small e, grave accent -->
  197. <!ENTITY eth "ð" -- small eth, Icelandic -->
  198. <!ENTITY euml "ë" -- small e, dieresis or umlaut mark -->
  199. <!ENTITY gt ">" -- greater than -->
  200. <!ENTITY iacute "í" -- small i, acute accent -->
  201. <!ENTITY icirc "î" -- small i, circumflex accent -->
  202. <!ENTITY igrave "ì" -- small i, grave accent -->
  203. <!ENTITY iuml "ï" -- small i, dieresis or umlaut mark -->
  204. <!ENTITY lt "<" -- less than -->
  205. <!ENTITY ntilde "ñ" -- small n, tilde -->
  206. <!ENTITY oacute "ó" -- small o, acute accent -->
  207. <!ENTITY ocirc "ô" -- small o, circumflex accent -->
  208. <!ENTITY ograve "ò" -- small o, grave accent -->
  209. <!ENTITY oslash "ø" -- small o, slash -->
  210. <!ENTITY otilde "õ" -- small o, tilde -->
  211. <!ENTITY ouml "ö" -- small o, dieresis or umlaut mark -->
  212. <!ENTITY szlig "ß" -- small sharp s, German (sz ligature) -->
  213. <!ENTITY thorn "þ" -- small thorn, Icelandic -->
  214. <!ENTITY uacute "ú" -- small u, acute accent -->
  215. <!ENTITY ucirc "û" -- small u, circumflex accent -->
  216. <!ENTITY ugrave "ù" -- small u, grave accent -->
  217. <!ENTITY uuml "ü" -- small u, dieresis or umlaut mark -->
  218. <!ENTITY yacute "ý" -- small y, acute accent -->
  219. <!ENTITY yuml "ÿ" -- small y, dieresis or umlaut mark -->
  220.  
  221. <!-- deprecated elements -->
  222.  
  223. <!ELEMENT (%literal) - -  CDATA>
  224.  
  225. <!ELEMENT PLAINTEXT - O EMPTY>
  226.  
  227. <!-- Local Variables: -->
  228. <!-- mode: sgml -->
  229. <!-- compile-command: "sgmls -s -p " -->
  230. <!-- end: -->
  231.  
  232.  
  233.  
  234.    
  235.  
  236.  
  237.